package controller;

import bean.Users;
import bean.subBean.SubUsers;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.UsersService;

public class AnnotationController {

    public static void main(String[] args) {

        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("springConfig.xml");

        Users user = context.getBean(Users.class);
//        Users user1 = context.getBean(Users.class);
//
//        user.setAge(22222);

//        System.out.println(user1.getAge());

//        UsersService us = (UsersService) context.getBean("us");
//        us.register(user);

//        SubUsers subUsers = context.getBean(SubUsers.class);


    }

}
